//2. reducer/index.js中合并reducer
import { combineReducers } from 'redux';
import { todoredux } from './todo';
import userReducer from './user';

const rootReducer = combineReducers({
  todo: todoredux,
  user: userReducer,
});

export default rootReducer;

// 1. reducer
// 1.1 👍 按功能拆分模块，文件名按功能来命名
// 1.2 合并成一个reducer， reducer/index.js中，使用combine
// 1.3 传给cj时的createStore
